package com.yidu.qx.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Objects;

/**
 * @program: jurisdiction
 * @description:
 * @author: 张超
 * @create: 2019-09-25 10:22
 */
@Entity
@Table(name = "qx_RoleUser", schema = "ZC", catalog = "")
public class QxRoleUserEntity {
    private String ruId;

    @Id
    @Column(name = "ru_id")
    public String getRuId() {
        return ruId;
    }

    public void setRuId(String ruId) {
        this.ruId = ruId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QxRoleUserEntity that = (QxRoleUserEntity) o;
        return Objects.equals(ruId, that.ruId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ruId);
    }
}